<template>
  <div class="app-container">
    <div class="layout-content">
      <keep-alive v-if="$route.meta.keepAlive">
        <router-view></router-view>
      </keep-alive>
      <router-view v-else></router-view>
    </div>

  </div>
</template>

<script>
export default {
  name: 'AppLayout',
  data() {
    return {
      tabbars: [
        {
          title: '在线订单',
          to: {
            name: 'onlineOrder'
          },
          icon: 'orders-o'
        },
        {
          title: '扫描订单',
          to: {
            name: 'scanOrder'
          },
          icon: 'orders-o'
        },
        {
          title: '查询订单',
          to: {
            name: 'checkOrder'
          },
          icon: 'orders-o'
        }
      ]
    }
  },
  components: {
    TabBar
  },
  methods: {
    handleChange(v) {
      console.log('tab value:', v)
    }
  }
}
</script>
